#
# Be sure to run `pod lib lint SKMBProgressHUD.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'SKMBProgressHUD'
  s.version          = '0.1.3'
  s.summary          = 'A lightweight progress HUD with atomic activity count management for iOS.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
SKMBProgressHUD is a lightweight wrapper around MBProgressHUD, providing atomic activity count management and flexible window targeting for consistent HUD display in iOS apps.
                       DESC

  s.homepage         = 'https://gitee.com/Snail67/MBProgressHUD'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'sunshukang' => '990469893@qq.com' }
  s.source           = { :git => 'https://gitee.com/Snail67/MBProgressHUD.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '13.0'
  s.source_files = 'SKMBProgressHUD/Classes/**/*'
  s.public_header_files = 'SKMBProgressHUD/Classes/**/*.h'  # 暴露所有公共头文件
  s.dependency 'MBProgressHUD', '~> 1.2.0'
  s.requires_arc       = true
  s.swift_version      = '5.0'  # 若含 Swift 代码需声明
  
  s.pod_target_xcconfig = {
    'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/MBProgressHUD"',  # 保留头文件路径
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',        # 排除模拟器 arm64 架构
    'GCC_WARN_INHIBIT_ALL_WARNINGS' => 'YES'                 # 禁用所有警告
  }

  s.user_target_xcconfig = {
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'        # 用户目标同样排除 arm64
  }
  
  # s.resource_bundles = {
  #   'SKMBProgressHUD' => ['SKMBProgressHUD/Assets/*.png']
  # }
end
